package com.itxuhang.mvc.handler;

import com.itxuhang.mvc.model.ModelAndView;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

// 制定一个标准，用来约束程序员如何编写处理类handler
public interface Controller {
    ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;
}
